package com.aspose.cells;

class zbcw extends zbz {
   zbcw(int var1, String var2) {
      this.c(4109);
      this.b = var1;
      if (var2 != null && !"".equals(var2)) {
         if (var2.length() > 255) {
            throw new CellsException(6, "Series name is too long.");
         }

         byte[] var3 = Encoding.getUnicode().a(var2);
         this.a((short)(4 + var3.length));
         this.c = new byte[this.d()];
         this.c[2] = (byte)var2.length();
         this.c[3] = 1;
         System.arraycopy(var3, 0, this.c, 4, var3.length);
      } else {
         this.b(4);
         this.c = new byte[4];
      }

   }
}
